import request from '@/utils/request'

// 查询所有商品
// export function getGoodsList() {
//     return request({
//        url: '/products/getGoodsList',
//        method: 'get',
//     })
// }

export function productList(params) {
    return request({
       url: '/product/products/productAppList',
       method: 'get',
       params: params ,// GET请求的参数, request模块会自动拼接到URL后面
    })
}

//查询父级类型
export function getParentTypeList(params) {
    return request({
        url: '/product/categories/getParentTypeList',
        method: 'get',
        params: params ,// GET请求的参数, request模块会自动拼接到URL后面
    })
}

//查询
export function list(data) {
    return request({
       url: '/es/sync/search',
       method: 'post',
       data: data
    })
}